package com.szly.phm.common.entity.dto.faRepair;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * phm
 *
 * @author: git.jas0nch
 * date: 2021-10-28
 */
@Data
public class CreateFaFaultRecordDTO {

    /**
     * 备注
     */
    @ApiModelProperty(value = "PHM故障记录备注")
    private String remarks;

    /**
     * 结构件id
     */
    @ApiModelProperty(value = "PHM故障记录结构件id")
    private String structureId;

    /**
     * 是否处理
     */
    @ApiModelProperty(value = "PHM故障记录是否记录")
    @NotNull(message = "是否不能为空")
    private Integer isDeal;

    /**
     * 故障来源
     */
    @ApiModelProperty(value = "PHM故障记录来源")
    private int faultResource;

    /**
     * 故障来源
     */
    @ApiModelProperty(value = "PHM故障记录时间")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date downTime;
}
